package com.oscarmovie.service;

import java.util.List;
import java.util.Set;

import com.oscarmovie.dao.MovieDao;
import com.oscarmovie.model.Movie;
import com.oscarmovie.model.Mpr;
import com.oscarmovie.model.Paging;
import com.oscarmovie.model.Person;

public class MovieServiceImpl implements MovieService {
	private MovieDao movieDao;

	public void setMovieDao(MovieDao movieDao) {
		this.movieDao = movieDao;
	}

	public MovieDao getMovieDao() {
		return movieDao;
	}

	
	public void save(Movie movie) {
		movieDao.save(movie);
	}

	
	public Movie load(int id) {
		Movie movie = movieDao.load(id);
		return movie;
	}

	
	public List<Movie> list(Paging paging) {
		return movieDao.list(paging);
	}
	
	public List<Movie> list(Paging paging, Movie movie) {
		return movieDao.list(paging, movie);
	}
	
	
	public List<Movie> list(int calendarId, int categoryId, int countryId, int awardId, int personId, int type, Paging paging) {
		return movieDao.loadAll(calendarId,categoryId,countryId,awardId,personId,type,paging);
	}

	
	public List<Movie> loadMostScore(int count) {
		return movieDao.loadMostScore(count);
	}

	
	public List<Movie> loadMostWatched(int count) {
		return movieDao.loadMostWatched(count);
	}

	
	public List<Movie> loadMostWanted(int count) {
		return movieDao.loadMostWanted(count);
	}

	
	public List<Movie> loadMostAwarded(int count) {
		return movieDao.loadMostAwarded(count);
	}

	
}
